"""Main entry point for Skype Shell.

Copyright Ian Blumel, 2009.
All Rights Reserved.
"""

try:
    import psyco
    psyco.profile()
except ImportError:
    pass # Ok, we tried.

import sys
import Skype4Py
from libskysh.skype_kernal import skype_kernal_t

                            
if __name__=="__main__":
    # For now this is the only option...
    print "starting skype kernal...",
    kern = skype_kernal_t()
    kern.start()
    print "OK."

    # Poll...
    cmd = ""
    while not cmd in ['x', 'X']:
        cmd = raw_input("type x to quit: \n")      
    kern.stop()
